<?php
ob_start();
session_start();
include "inc/config.php";

if(!isset($_SESSION['id']))
{
	header('Location:login.php');
}
else
{
	if($userClass->setUser($_SESSION['id']))
	{
		$user = $userClass->user; 
		$authority = new UserGroup($db);
		//include($incModule);
	}
	else
	{
		die('You cant login this page. Your account id not defined! please contact administrator or re-connect system');
	}
}

include "template/index.php";
?>